<template>
  <div>
    第二个应用
    <a-button @click="toPage2">跳转到page2</a-button>
  </div>
</template>

<script setup>
import HelloWorld from "../components/HelloWorld.vue";
import { reactive } from "vue";
import { useRouter } from "vue-router";
const { currentRoute, push } = useRouter();
const toPage2 = () => {
  push("/ceshi2/page2");
};
const url = reactive(new URL("../assets/logo.png", import.meta.url));
// This starter template is using Vue 3 experimental <script setup> SFCs
// Check out https://github.com/vuejs/rfcs/blob/script-setup-2/active-rfcs/0000-script-setup.md
</script>
<style></style>
